import rxAjax from '@/assets/js/ajax.js';
//组织架构 api接口
const PublicApi = {};

PublicApi.baseUrl = '/api-user/user/org/public';

PublicApi.getAppServices = function () {
    var url = PublicApi.baseUrl + '/getAppServices';
    return rxAjax.get(url);
}

PublicApi.getAllClassByAppName = function (appName) {
    if(appName == "ac-boot"){
        appName = "api-form"
    }
    var url = '/' + appName + '/global/getAllApiClass';
    return rxAjax.get(url);
}

export default PublicApi;